package com.freesky.common.dao.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.freesky.common.enums.StateEnum;
import lombok.Data;

import java.io.Serializable;

/**
 * @author: 陈玉林
 * @date: 2019-01-15 13:48
 * @description: 首页轮播
 */
@Data
public class HomeRotationChart extends Model<HomeRotationChart> {
    public HomeRotationChart() {
    }

    public HomeRotationChart(Integer id) {
        this.id = id;
    }


    @TableId
    private Integer id;
    private String itemId;
    private Integer sortOrder;
    private String picUrl1;
    private String picUrl2;
    private String picUrl3;
    private StateEnum state;
    private String createTime;
    private String updateTime;

    @TableField(exist = false)
    private Item item=new Item();

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
